package com.violet.domain.emuns;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum OrderStatus {
    WAIT_PAID(0, "待支付"),
    WAIT_DELIVERY(1, "待发货"),
    WAIT_RECEIVING(2, "配送中"),
    COMPLETED(3, "已完成");

    @EnumValue
    public final int code;
    public final String message;

    private OrderStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
